<T:ViewBase x:Class="WPFExcelReport.TWDPLAN02"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
                    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    Background="White"  
                    Loaded="Window_Loaded"
     >
    <T:ViewBase.Resources>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:TIMES100  x:Key="X100"/>
        <ucd:TIMES10  x:Key="X10"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:PreisConverter  x:Key="PreisConverter"/>
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:TextTrimmingConverter  x:Key="Trim"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>  
    </T:ViewBase.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0">
        <WrapPanel>
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=WDPMANDANT:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwWDPLAN.WDPMANDANT}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=WDPWAKZ:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwWDPLAN.WDPWAKZ}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=WDPKUNDNR:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwWDPLAN.WDPKUNDNR}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=WDPWERK:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwWDPLAN.WDPWERK}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=WDPABT:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwWDPLAN.WDPABT}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=WDPDART:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwWDPLAN.WDPDART}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=WDPDVAR:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwWDPLAN.WDPDVAR}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=WDPDESS:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwWDPLAN.WDPDESS}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=WDPCOLORIT:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwWDPLAN.WDPCOLORIT}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=WDPFARBE:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwWDPLAN.WDPFARBE}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=WDPBESCHICH:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwWDPLAN.WDPBESCHICH}" Width="Auto" />
            </Grid> 
        </WrapPanel>
        <WrapPanel Visibility="{Binding IsWDPLAN,Converter={StaticResource ResourceKey=bv}}">
                <ex:TBASE1></ex:TBASE1>
            </WrapPanel>
        </StackPanel>
        <DataGrid  Grid.Row="1"  VerticalAlignment="Top"  
                                   AutoGenerateColumns="False"
                                   EnableRowVirtualization="False"
                                   VerticalScrollBarVisibility="Auto"
                                   HorizontalScrollBarVisibility="Auto"
                                   HeadersVisibility="Column"     
                                   ItemsSource="{Binding vwWDPLAN}"  
                                    IsSynchronizedWithCurrentItem="True"
                                   SelectedItem="{Binding Path=dwWDPLAN, Mode=TwoWay}"
                                   x:Name="dlgVKP"  
                                   RowDetailsVisibilityMode="Visible" Grid.ColumnSpan="2" Margin="0,0.2,0.2,0"
                    >
            <DataGrid.Columns> 
                <DataGridTextColumn x:Name="WDPMANDANT"
                                    Binding="{Binding Path=WDPMANDANT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WDPMANDANT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WDPWAKZ"
                                    Binding="{Binding Path=WDPWAKZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WDPWAKZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WDPKUNDNR"
                                    Binding="{Binding Path=WDPKUNDNR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WDPKUNDNR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WDPWERK"
                                    Binding="{Binding Path=WDPWERK, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WDPWERK}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WDPABT"
                                    Binding="{Binding Path=WDPABT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WDPABT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WDPDART"
                                    Binding="{Binding Path=WDPDART, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WDPDART}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WDPDVAR"
                                    Binding="{Binding Path=WDPDVAR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WDPDVAR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WDPDESS"
                                    Binding="{Binding Path=WDPDESS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WDPDESS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WDPCOLORIT"
                                    Binding="{Binding Path=WDPCOLORIT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WDPCOLORIT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WDPFARBE"
                                    Binding="{Binding Path=WDPFARBE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WDPFARBE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WDPBESCHICH"
                                    Binding="{Binding Path=WDPBESCHICH, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WDPBESCHICH}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WDPPROGRP"
                                    Binding="{Binding Path=WDPPROGRP, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WDPPROGRP}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WDPARTGRP"
                                    Binding="{Binding Path=WDPARTGRP, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WDPARTGRP}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WDPPLMGA"
                                    Binding="{Binding Path=WDPPLMGA, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WDPPLMGA}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WDPERFBENA"
                                    Binding="{Binding Path=WDPERFBENA, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WDPERFBENA}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WDPERFDATA"
                                    Binding="{Binding Path=WDPERFDATA, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WDPERFDATA}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WDPPLMGN"
                                    Binding="{Binding Path=WDPPLMGN, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WDPPLMGN}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WDPERFBENN"
                                    Binding="{Binding Path=WDPERFBENN, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WDPERFBENN}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WDPERFDATN"
                                    Binding="{Binding Path=WDPERFDATN, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WDPERFDATN}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WDPTREND"
                                    Binding="{Binding Path=WDPTREND, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WDPTREND}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WDPLOSGR"
                                    Binding="{Binding Path=WDPLOSGR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WDPLOSGR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WDPBED1"
                                    Binding="{Binding Path=WDPBED1, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WDPBED1}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WDPBED2"
                                    Binding="{Binding Path=WDPBED2, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WDPBED2}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WDPBED3"
                                    Binding="{Binding Path=WDPBED3, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WDPBED3}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WDPBED4"
                                    Binding="{Binding Path=WDPBED4, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WDPBED4}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WDPBED5"
                                    Binding="{Binding Path=WDPBED5, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WDPBED5}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WDPBED6"
                                    Binding="{Binding Path=WDPBED6, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WDPBED6}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WDPBED7"
                                    Binding="{Binding Path=WDPBED7, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WDPBED7}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WDPBED8"
                                    Binding="{Binding Path=WDPBED8, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WDPBED8}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WDPBED9"
                                    Binding="{Binding Path=WDPBED9, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WDPBED9}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WDPBED10"
                                    Binding="{Binding Path=WDPBED10, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WDPBED10}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WDPBED11"
                                    Binding="{Binding Path=WDPBED11, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WDPBED11}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WDPBED12"
                                    Binding="{Binding Path=WDPBED12, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WDPBED12}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WDPWOBEDKZ"
                                    Binding="{Binding Path=WDPWOBEDKZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WDPWOBEDKZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WDPBEM"
                                    Binding="{Binding Path=WDPBEM, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WDPBEM}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WDPFILLER"
                                    Binding="{Binding Path=WDPFILLER, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WDPFILLER}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WDPAENZL"
                                    Binding="{Binding Path=WDPAENZL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WDPAENZL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WDPAENB"
                                    Binding="{Binding Path=WDPAENB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WDPAENB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WDPAEND"
                                    Binding="{Binding Path=WDPAEND, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WDPAEND}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WDPNEUB"
                                    Binding="{Binding Path=WDPNEUB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WDPNEUB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WDPNEUD"
                                    Binding="{Binding Path=WDPNEUD, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WDPNEUD}}"
                                    Width="Auto" />
            </DataGrid.Columns>
        </DataGrid  >
    </Grid>
</T:ViewBase> 
 
